import request from '@/utils/request'

/**
 * isBindEmail
 * @param {*} data
 * @returns
 */
export function isBindEmail(data) {
  return request({
    url: '/api/isBindEmail',
    method: 'post',
    data
  })
}

/**
 * Obtain email code
 * @param {*} data
 * @returns
 */
export function sendEmail(data) {
  return request({
    url: '/registerEmail/sendEmail',
    method: 'post',
    data
  })
}

/**
 * bind Email
 * @param {*} data
 * @returns
 */
export function bindEmail(data) {
  return request({
    url: '/api/bindEmail',
    method: 'post',
    data
  })
}
